include_once($modx->config['rb_base_dir'] . 'snippets/FDM/includes/install.class.inc.php');

// check your lang: available is FR or EN
$lang='FR';

echo "<h2>Installation de FDM.</h2>";
$fdm_install=new installation;
         
$snippet['FDM']['filename']='[snippet]FDM.php';
$snippet['FDM']['description']='Front End Doc Manager';

$chunk['fdmEform']['filename']='[chunk]FDMeFormTpl_'.$lang.'.html';
$chunk['fdmEform']['description']='eForm Template for editing Documents';

$fdm_install->snippets=$snippet;
$fdm_install->chunks=$chunk;
$fdm_install->Run();